package sort;

import java.util.Arrays;

public class Test {
    //直接插入排序
    public static void insertSort(int[] array) {
        array = Arrays.copyOf(array,array.length);
        Sort.insertSort(array);
        System.out.println(Arrays.toString(array));
    }

    //希尔排序
    public static void shellSort(int[] array) {
        array = Arrays.copyOf(array,array.length);
        Sort.shellSort(array);
        System.out.println(Arrays.toString(array));
    }
    public static void selectSort(int[] array) {
        array = Arrays.copyOf(array,array.length);
        Sort.selectSort(array);
        System.out.println(Arrays.toString(array));
    }
    public static void main(String[] args) {
        int[] array = {12,56,32,67,10,19,4};
//        insertSort(array);
//        shellSort(array);
        selectSort(array);
    }
}
